//
//  BaseCollectionViewCell.h
//  JKWDTeacher
//
//  Created by 学大教育 on 2022/1/18.
//

#import <UIKit/UIKit.h>
#import "BaseModel.h"
NS_ASSUME_NONNULL_BEGIN
@protocol CollectionCellActionDelegate <NSObject>

@optional
- (void)actionIndexPath:(NSIndexPath *)indexPath infoData:(nullable id)data;

@end

@interface BaseCollectionViewCell : UICollectionViewCell
@property (nonatomic, strong) CellModel *model;
@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, weak) id<CollectionCellActionDelegate> delegate;
+ (BaseCollectionViewCell *)cellForModel:(CellModel *)model collectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath;

@end

NS_ASSUME_NONNULL_END
